
<h1><span class="yiyi-st" id="yiyi-13">numpy.ma.MaskedArray.resize</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.MaskedArray.resize.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.MaskedArray.resize.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="method">
<dt id="numpy.ma.MaskedArray.resize"><span class="yiyi-st" id="yiyi-14"> <code class="descclassname">MaskedArray.</code><code class="descname">resize</code><span class="sig-paren">(</span><em>newshape</em>, <em>refcheck=True</em>, <em>order=False</em><span class="sig-paren">)</span><a class="reference external" href="http://github.com/numpy/numpy/blob/v1.11.3/numpy/ma/core.py#L4481-L4497"><span class="viewcode-link">[source]</span></a></span></dt>
<dd><div class="admonition warning">
<p class="first admonition-title"><span class="yiyi-st" id="yiyi-15">警告</span></p>
<p class="last"><span class="yiyi-st" id="yiyi-16">此方法不执行任何操作，但抛出一个ValueError异常。</span><span class="yiyi-st" id="yiyi-17">被屏蔽的数组不拥有其数据，因此不能安全地调整大小。</span><span class="yiyi-st" id="yiyi-18">请改用<a class="reference internal" href="numpy.ma.resize.html#numpy.ma.resize" title="numpy.ma.resize"><code class="xref py py-obj docutils literal"><span class="pre">numpy.ma.resize</span></code></a>函数。</span></p>
</div>
<p><span class="yiyi-st" id="yiyi-19">此方法难以安全实施，并且可能在未来版本的NumPy中被弃用。</span></p>
</dd></dl>
